package cn.yunhe.biz;

import cn.yunhe.bean.HotelPrice;
import cn.yunhe.dao.HotelBackMapper;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class HotelBackService {
    SqlSession session = SqlSessionFactoryUtil.getSqlSession();
    HotelBackMapper hotelBackMapper = session.getMapper(HotelBackMapper.class);
    public List<HotelPrice> getAllHotelRoom(){
        return hotelBackMapper.getAllBackIfo();
    }
}
